/********************************************************************
	created:	2012/02/26   23:23
	filename: 	hy_server_base.h
	author:		supercaco@sina.com
	purpose:	
*********************************************************************/
#ifndef _HY_SERVER_H_
#define _HY_SERVER_H_

#include "hy_define.h"
#include "hy_error.h"

//moudle base 
class hy_module_base
{
public:
	hy_module_base(){}
	virtual ~hy_module_base(){}

	virtual hy_err_t init() = 0;
	virtual hy_err_t unit() = 0;
	virtual void run() {}
	virtual void stop(){}
};

//service base
class hy_service_base
{
public:
	hy_service_base(){}
	virtual ~hy_service_base(){}

	virtual hy_err_t init() = 0;
	virtual hy_err_t unit() = 0;
	virtual void run(){}
	virtual void stop(){}
};

//server base
class hy_server_base
{
public:
	hy_server_base(){}
	virtual ~hy_server_base(){}

	virtual hy_err_t init() = 0;
	virtual hy_err_t unit() = 0;
};

#endif  //_HY_SERVER_H_

